Sum of squares of integers